const webpack = require('webpack')
const path = require('path')
module.exports = {
    publicPath: './',
    outputDir: "ZCGraph",
    // eslint-loader 是否在保存的时候检查
    lintOnSave: false,
    productionSourceMap: false,
    devServer: {
        // host: 'localhost',
        // port: 8081,
        open: true,
        proxy: {
            '/kgraphdb': {
                target: 'http://172.16.20.104:8183/',
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/kgraphdb': ''
                }
            },
            '/api': {
                target: 'http://172.16.20.104:8089/',
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/api': ''
                }
            }
        },
    },
    configureWebpack: {
        resolve: {
            alias: {
                'vue$': 'vue/dist/vue.esm.js',
                '@': path.resolve('src')
            }
        },
        plugins: [
            new webpack.ProvidePlugin({
                jQuery: 'jquery',
                $: 'jquery'
            }),
        ],
    },
}
